#!/usr/bin/python
# encoding: utf-8
'''
@File    :   code.py
@Time    :   2020/03/11 21:54:19
@Author  :   fangkaijin 
@Version :   1.0
@Contact :   fangkaijin@gmail.com
@License :   杭州移动互联
@Desc    :   None
'''

# 导入库包

import sys, os

mins = [30, 5, 60]
seds = [x * 60 for x in mins]
for x in seds:
    print(x)

a, b, c = 2, 5, 7
print(a and c)

leaps = [y for y in range(1900, 1940) if ((y % 4 == 0 and y % 100 != 0) or (y % 400 == 0))]
for y in leaps:
    print(y)

s = set()
s.add(1)
s.add(2)
for n in s:
    print(n)

st = {1,2,3,45,6}
for n in st:
    print(n)


import string
words = {}
strip = string.whitespace + string.punctuation + string.digits + '\''
print(strip)
print(sys.argv)

with open(sys.argv[0], 'r') as f:
    while True:
        if f.readline():
            print(f.readline())
        else:
            break

print(os.listdir('.'))

files = {name : os.path.getsize(name) for name in os.listdir('.')}
print(files)

import collections
words = collections.defaultdict()
print(words.get('hello'))